import request from '@/utils/request'

export function listPayment(query) { return request({ url: '/jiaxiao/payment/list', method: 'get', params: query }) }
export function getPayment(id) { return request({ url: '/jiaxiao/payment/' + id, method: 'get' }) }
export function addPayment(data) { return request({ url: '/jiaxiao/payment', method: 'post', data }) }
export function updatePayment(data) { return request({ url: '/jiaxiao/payment', method: 'put', data }) }
export function delPayment(ids) { return request({ url: '/jiaxiao/payment/' + ids, method: 'delete' }) }
export function sumPaid(studentId) { return request({ url: '/jiaxiao/payment/sumPaid/' + studentId, method: 'get' }) }


